<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
	<script src="tips.js"></script>
	<script>
	window.onload=function(){
		showTips(".btn",{  
		    content:"我是一个弹窗",  
		    boxDomStyle:{  
		        opacity:".9"  
		    },  
		    imgDomStyle:{  
		        opacity:".8"  
		    },  
		    open:function(){  
		        console.log("show");  
		    },  
		    close:function(){  
		        console.log("close");  
		    }  
		});
	}
		
	</script>
</head>
<body>
	<div  class="btn"> 点我弹窗</div>
</body>
</html>